package com.aipolice.dao;

import com.aipolice.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserDAO extends JpaRepository<User,Integer> {
    public Optional<User> findUserByTel(String phone);

    public Optional<User> findUserByUsernameAndPassword(String username,String password);
}
